---
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
  name: v1beta1.custom.metrics.k8s.io
  {{- include "helm_lib_module_labels" (list .) | nindent 2 }}
spec:
  caBundle: {{ .Values.prometheusMetricsAdapter.internal.adapterCert.ca | b64enc }}
  service:
    name: prometheus-metrics-adapter
    namespace: d8-monitoring
  group: custom.metrics.k8s.io
  version: v1beta1
  groupPriorityMinimum: 100
  versionPriority: 100
---
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
  name: v1beta1.metrics.k8s.io
  {{- include "helm_lib_module_labels" (list .) | nindent 2 }}
spec:
  caBundle: {{ .Values.prometheusMetricsAdapter.internal.adapterCert.ca | b64enc }}
  service:
    name: prometheus-metrics-adapter
    namespace: d8-monitoring
  group: metrics.k8s.io
  version: v1beta1
  groupPriorityMinimum: 100
  versionPriority: 100
---
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
  name: v1beta1.external.metrics.k8s.io
  {{- include "helm_lib_module_labels" (list .) | nindent 2 }}
spec:
  caBundle: {{ .Values.prometheusMetricsAdapter.internal.adapterCert.ca | b64enc }}
  service:
    name: prometheus-metrics-adapter
    namespace: d8-monitoring
  group: external.metrics.k8s.io
  version: v1beta1
  groupPriorityMinimum: 100
  versionPriority: 100
